package com.aaa.service;

import com.aaa.entity.PageSort;
import com.aaa.entity.Userinfo;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface UserInfoService {
    Page selectAllUserInfo(PageSort pageSort);
    boolean deleteUserInfoById(Integer userid);
   boolean deleteUserInfoBatch(String userid);
    boolean updateUserInfo(Userinfo userinfo);
    boolean insertUserRole(Userinfo userinfo);

    boolean updateUserRole(Userinfo userinfo);

    boolean deleteUserRoleById(Integer userid);

    boolean deleteUserRoleBatch(String userid);
    //用户登录 个人信息修改
    boolean updateInfo(Userinfo userinfo);
    boolean resetPassword(Userinfo userinfo);
    boolean insertUserInfo(Userinfo userinfo) throws ClassNotFoundException;
    List<Map<String,Object>> findAllUserInfoByName(Map map);
    boolean selectLoginByName(Userinfo userinfo);

//    int addUser();
}
